<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/must/basePath.jspf" %>
<!--后台UI组件Start-->
<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI.jspf" %>
<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI_form.jspf" %>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            $(function () {
                $.metadata.setType("attr", "validate");

                var v = $("#FormID_FWY").validate({
                    debug: false,
                    errorPlacement: function (lable, element) {
                        if (element.hasClass("l-textarea")) {
                            element.addClass("l-textarea-invalid");
                        } else if (element.hasClass("l-text-field")) {
                            element.parent().addClass("l-text-invalid");
                        }
                    },
                    success: function (lable) {
                        var element = $("#" + lable.attr("for"));
                        if (element.hasClass("l-textarea")) {
                            element.removeClass("l-textarea-invalid");
                        } else if (element.hasClass("l-text-field")) {
                            element.parent().removeClass("l-text-invalid");
                        }
                    },
                    submitHandler: function () {
                        f_ajaxForm("DivID_FWY", "weixinkeji/dev/dc/base/user/a/add.imy", 400, 200);
                        return false;
                    }
                });
                $("#FormID_FWY").ligerForm();

            });
        </script>
        <style type="text/css">
            body{ font-size:12px;}
            .l-table-edit {}
            .l-table-edit-td{ padding:4px;}
            .l-button-submit,.l-button-test{width:80px; float:left; margin-left:10px; padding-bottom:2px;}
            .l-verify-tip{ left:230px; top:120px;}
        </style>
    </head>
    <body>
        <h1>
            带*号的是必填项
        </h1>
        <div id="DivID_FWY">
            <form action="weixinkeji/dev/dc/base/user/a/add.imy" method="post" id="FormID_FWY">
                <table>
                    <tr>
                        <td>名称(1-26)*</td>
                        <td><input type="text" name="fwy_name"  id="fwy_name"  validate="{required:true,minlength:1}" ltype="text" maxlength="26" /></td>
                    </tr>
                    <tr>
                        <td>账号(1-16)*</td>
                        <td><input type="text" name="fwy_account" id="fwy_account" validate="{required:true,minlength:1}" ltype="text"  maxlength="16" /></td>
                    </tr>
                    <tr>
                        <td>密码(1-32)*</td>
                        <td><input type="text" name="fwy_password"id="fwy_password"  validate="{required:true,minlength:1}" ltype="text" maxlength="32" /></td>
                    </tr>
                    <tr>
                        <td>锁定码(1-10)*</td>
                        <td><input type="text" name="fwy_lock"id="fwy_lock"  validate="{required:true,minlength:1}" ltype="text" value="666"  maxlength="10" /></td>
                    </tr>
                    <tr>
                        <td>电话(0-50)</td>
                        <td><input type="text" name="fwy_tel" id="fwy_tel"  maxlength="50" /></td>
                    </tr>
                    <tr>
                        <td>邮箱(1-50)</td>
                        <td><input type="text" name="fwy_email"id="fwy_email"  maxlength="50"  /></td>
                    </tr>
                    <tr>
                        <td>状态</td>
                        <td><select name="fwy_style">
                                <option  value="1">启用</option>
                                <option  value="0">停用</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td></td><td><input type="submit" value="提交"></td>
                    </tr>
                </table>            
            </form>
        </div>
    </body>
</html>
